package com.cn.service.newList;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cn.entity.TbNews;
import org.springframework.stereotype.Service;

/**
 * @Author zxl
 * @Date 2021/6/3 14:37
 * @Package com.service
 * @Version 1.0
 */

public interface TbNewsService {
    //    查询全部新闻
    public IPage<TbNews> selectAllTbNews(int pageNum);
    //    根据id修改新闻
    public int updateTbNewsById(TbNews tbNews);
    //    添加新闻
    public int addTbNews(TbNews tbNews);
    //    根据id删除新闻
    public int deleteTbNewsById(long id);
    //    根据标题查询新闻
    public Page<TbNews> selectTbNewsByNewsTitle();
}
